package discover

import "log"

//Consul服务发现客户端接口
//根据go-kit相关接口
type DiscoveryClient interface {
	//服务注册接口
	Register(serviceName, instanceId, healthCheckUrl string, instanceHost string, instancePort int, meta map[string]string, logger *log.Logger) bool
	//服务注销接口
	DeRegister(instanceId string, logger *log.Logger) bool
	//服务发现接口
	DiscoverServices(serviceName string, logger *log.Logger) []interface{}
}
